﻿<%@ Control Language="C#" AutoEventWireup="false" CodeFile="MyIndexControl2.ascx.cs"
    Inherits="UserControl_MyIndexControl2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<div class="newsbox_noright" >
    <div class="newsbox_noright_header">
        <h4>
            <asp:HyperLink ID="lblTenDanhMuc" runat="server" Text="Mục: " meta:resourcekey="lblTenDanhMucResource1"></asp:HyperLink>
           
        </h4>
    </div>
    <div class="newsbox_noright_content" >
        <table>
            <tr>
                <td>
                    <table border="0" cellspacing="2" cellpadding="2" width="100%"  >
                        <tr>
                            <td width="700px" colspan="2" height="320px" valign="top">
                                <asp:Panel ID="pnlNormal" runat="server" Height="320px" meta:resourcekey="pnlNormalResource1">
                                    <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" 
                                        Width="520px" Height="270px"><asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Tin HOT">
                                            <HeaderTemplate>
                                                Tin HOT
                                            </HeaderTemplate>
                                            <ContentTemplate><asp:GridView ID="gridVIP" runat="server" AutoGenerateColumns="False" 
                                                CellPadding="1" EnableModelValidation="True" Font-Size="X-Small" 
                                                ForeColor="#333333" GridLines="None" Height="200px" Width="500px" 
                                                meta:resourcekey="gridNormalResource1" 
                                                onrowdatabound="gridVIP_RowDataBound" CellSpacing="1">
                                            <Columns>
                                                <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="TextBox1" runat="server" meta:resourcekey="TextBox1Resource1"></asp:TextBox>
                                                    </EditItemTemplate>
                                                    <ItemTemplate>
                                                        <asp:Image ID="Image1" runat="server" ImageUrl="~/images/hot.gif" 
                                                            meta:resourcekey="Image1Resource1" Width="30px" />
                                                    </ItemTemplate>
                                                    <HeaderStyle Height="40px" />
                                                    <ItemStyle Height="30px" Width="30px" />
                                                </asp:TemplateField>
                                                <asp:TemplateField>
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("MaTinRaoVat") %>'></asp:TextBox>
                                                    </EditItemTemplate>
                                                    <ItemTemplate>
                                                        <asp:HyperLink ID="HyperLink1" runat="server" CssClass="jqzoom">
                                                        <asp:Image ID="Image2" runat="server" Height="40px" ImageAlign="Left" 
                                                            Width="40px" />
                                                        </asp:HyperLink>
                                                    </ItemTemplate>
                                                    <HeaderStyle Height="40px" />
                                                    <ItemStyle Height="30px" Width="40px" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="MaTinRaoVat" HeaderText="MaTinRaoVat" 
                                                    meta:resourcekey="BoundFieldResource1" ReadOnly="True" 
                                                    SortExpression="MaTinRaoVat" Visible="False">
                                                    <HeaderStyle Font-Size="X-Large" ForeColor="#990000" Height="40px" />
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="Tin HOT" 
                                                    meta:resourcekey="TemplateFieldResource2" SortExpression="TenTinRaoVat">
                                                    <ItemTemplate>
                                                        <asp:HyperLink ID="HyperLink2" runat="server" Height="30px" 
                                                            meta:resourcekey="HyperLink1Resource1" 
                                                            NavigateUrl='<%# Eval("MaTinRaoVat", "~/RaoVat/ChiTietTinRaoVat.aspx?ID={0}") %>' 
                                                            Text='<%# Eval("TenTinRaoVat") %>' Width="290px"></asp:HyperLink>
                                                    </ItemTemplate>
                                                    <ControlStyle BackColor="White" />
                                                    <HeaderStyle BackColor="#666666" Font-Size="Large" ForeColor="White" 
                                                        Height="40px" Width="250px" />
                                                    <ItemStyle HorizontalAlign="Left" Width="250px" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="ThoiGianDang" DataFormatString="{0:d}" 
                                                    HeaderText="Ngày đăng" meta:resourcekey="BoundFieldResource2" ReadOnly="True" 
                                                    SortExpression="ThoiGianDang">
                                                    <HeaderStyle Font-Size="Small" Height="40px" Width="50px" />
                                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="SoLanXem" HeaderText="Số lần xem" 
                                                    meta:resourcekey="BoundFieldResource3" ReadOnly="True" 
                                                    SortExpression="SoLanXem">
                                                    <ControlStyle Width="100px" />
                                                    <HeaderStyle Font-Size="Small" Height="40px" Width="50px" />
                                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                                                </asp:BoundField>
                                            </Columns>
                                            <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                            <EmptyDataTemplate>
                                                <asp:Label ID="Label4" runat="server" Text="Không tìm thấy"></asp:Label>
                                            </EmptyDataTemplate>
                                            <FooterStyle BackColor="#CCCCCC" BorderColor="Black" />
                                            <HeaderStyle BackColor="#666666" BorderColor="Black" Font-Bold="True" 
                                                Font-Names="Arial" ForeColor="White" Height="40px" HorizontalAlign="Center" 
                                                VerticalAlign="Middle" Wrap="True" />
                                            <RowStyle Height="30px" HorizontalAlign="Center" />
                                            </asp:GridView></ContentTemplate></asp:TabPanel><asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Tin Thường" Width="520px" Height="220px"><HeaderTemplate>
                                            Tin Thường</HeaderTemplate><ContentTemplate><asp:GridView ID="gridNormal" runat="server" AutoGenerateColumns="False" 
                                                    CellPadding="1" CellSpacing="1" EnableModelValidation="True" 
                                                    Font-Size="X-Small" ForeColor="#333333" GridLines="None" Height="200px" 
                                                    meta:resourceKey="gridNormalResource1" OnRowDataBound="gridVIP_RowDataBound" 
                                                    onselectedindexchanged="gridNormal_SelectedIndexChanged1" Width="500px">
                                            <Columns>
                                                <asp:TemplateField meta:resourceKey="TemplateFieldResource1">
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="TextBox1" runat="server" meta:resourcekey="TextBox1Resource1"></asp:TextBox>
                                                    </EditItemTemplate>
                                                    <ItemTemplate>
                                                        <asp:Image ID="Image1" runat="server" ImageUrl="~/images/hot.gif" 
                                                            meta:resourcekey="Image1Resource1" Width="30px" />
                                                    </ItemTemplate>
                                                    <HeaderStyle Height="40px" />
                                                    <ItemStyle Height="30px" Width="30px" />
                                                </asp:TemplateField>
                                                <asp:TemplateField>
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("MaTinRaoVat") %>'></asp:TextBox>
                                                    </EditItemTemplate>
                                                    <ItemTemplate>
                                                        <asp:HyperLink ID="HyperLink1" runat="server" CssClass="jqzoom">
                                                        <asp:Image ID="Image2" runat="server" Height="40px" ImageAlign="Left" 
                                                            Width="40px" />
                                                        </asp:HyperLink>
                                                    </ItemTemplate>
                                                    <HeaderStyle Height="40px" />
                                                    <ItemStyle Height="30px" Width="40px" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="MaTinRaoVat" HeaderText="MaTinRaoVat" 
                                                    meta:resourceKey="BoundFieldResource1" ReadOnly="True" 
                                                    SortExpression="MaTinRaoVat" Visible="False">
                                                    <HeaderStyle Font-Size="X-Large" ForeColor="#990000" Height="40px" />
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="Tin thường" 
                                                    meta:resourceKey="TemplateFieldResource2" SortExpression="TenTinRaoVat">
                                                    <EditItemTemplate>
                                                        <asp:Label ID="Label3" runat="server" meta:resourcekey="Label1Resource1" 
                                                            Text='<%# Eval("TenTinRaoVat") %>'></asp:Label>
                                                    </EditItemTemplate>
                                                    <ItemTemplate>
                                                        <asp:HyperLink ID="HyperLink2" runat="server" 
                                                            meta:resourcekey="HyperLink1Resource1" 
                                                            NavigateUrl='<%# Eval("MaTinRaoVat", "~/RaoVat/ChiTietTinRaoVat.aspx?ID={0}") %>' 
                                                            Text='<%# Eval("TenTinRaoVat") %>'></asp:HyperLink>
                                                    </ItemTemplate>
                                                    <ControlStyle BackColor="White" Width="250px" />
                                                    <HeaderStyle BackColor="#666666" Font-Size="Large" ForeColor="White" 
                                                        Height="40px" Width="120px" />
                                                    <ItemStyle HorizontalAlign="Left" Width="250px" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="ThoiGianDang" DataFormatString="{0:d}" 
                                                    HeaderText="Ngày đăng" meta:resourceKey="BoundFieldResource2" ReadOnly="True" 
                                                    SortExpression="ThoiGianDang">
                                                    <HeaderStyle Font-Size="Small" Height="40px" Width="50px" />
                                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="SoLanXem" HeaderText="Số lần xem" 
                                                    meta:resourceKey="BoundFieldResource3" ReadOnly="True" 
                                                    SortExpression="SoLanXem">
                                                    <ControlStyle Width="100px" />
                                                    <HeaderStyle Font-Size="Small" Height="40px" Width="50px" />
                                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" />
                                                </asp:BoundField>
                                            </Columns>
                                            <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                            <EmptyDataTemplate>
                                                <asp:Label ID="Label4" runat="server" Text="Không tìm thấy"></asp:Label>
                                            </EmptyDataTemplate>
                                            <FooterStyle BackColor="#CCCCCC" BorderColor="Black" />
                                            <HeaderStyle BackColor="#666666" BorderColor="Black" Font-Bold="True" 
                                                Font-Names="Arial" ForeColor="White" Height="40px" HorizontalAlign="Center" 
                                                VerticalAlign="Middle" />
                                            <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" />
                                            </asp:GridView></ContentTemplate></asp:TabPanel></asp:TabContainer>
                                </asp:Panel>
                            </td>
                            <td height="220px" width="350px">
                              
                            </td>
                        </tr>
                    </table>
                    <div style="left: 10px; position: relative;"  >
                        <asp:Panel ID="pnlButton" runat="server" meta:resourcekey="pnlButtonResource1" >
                        </asp:Panel>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</div>
